define([
    'dojo/_base/declare',
    'esri/geometry/Point',
    'geomap/plugins/layers/CanvasLayer',
], function (declare, Point, CanvasLayer) {
    var canvasLayer = declare([CanvasLayer], {
        setData: function (mapView, layer) {
            var me = this;
            me.data = $.extend(true, [], layer.layer.data);
            var options = layer.layer || {};
            me.options = options.options;
            me.devicePixelRatio = 1;
            me.mapv = options.options.mapv;
            me.style = options.style;
            me.init();
        },
    });
    return canvasLayer;
});
